package com.itheim.orderservice.controller;

import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.Map;

/**
 * 服务提供者
 */
@RestController
@RequestMapping("/feign")
public class OrderFeignController {
    @PostMapping("/demo001")
    public void test(@RequestBody HashMap map){
        System.out.println("feign调用成功");
        System.out.println(map.get("userId"));
    }
}
